<?php

declare(strict_types=1);

namespace app\shop\model\user;

use app\user\model\User as AppUser;

// 用户关联分销商模型
class User extends AppUser
{

    // -- commission code start --
    public function agent()
    {
        return $this->hasOne(\app\shop\model\commission\Agent::class, 'user_id', 'id');
    }
    // -- commission code end --
}
